import os

from build_functions import BuildConfigHeader

source_files = Split ("""
			buffer.c
			conn.c
			conn_end.c
			core.c
			debug.c
			ps.c   
			ssl.c
			ssl_end.c
			util.c
			cmd.c
			cs.c
			ns.c
			sem.c
                      """)

Import ('env options_filename')

install_dir = os.path.join (env['PREFIX'], 'lib')

env.Depends('config.h', os.path.join ('..', 'config_header_vars'))
env.Command('config.h', 'config.h.in', BuildConfigHeader)

libgmsn = env.StaticLibrary ('gmsn', source_files)
libgmsn_install = env.Install (install_dir, libgmsn)
env.Alias ('install', libgmsn_install)
